package com.example.demo.exception;

import com.example.demo.constant.ResultCode;


import com.example.demo.constant.ResultCode;

public class PublicException extends RuntimeException {

    private final int resultCode = 400;
//
    public PublicException(String msg) {
        super(msg);
    }

//    // 静态工厂方法：无效的Token
//    public static TokenException invalid() {
//        return new TokenException(ResultCode.UNAUTHORIZED);
//    }
}